/*
 * Copyright (C) 2013 Daniel Wasilew <daniel.wasilew@codeminer.org>
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package org.codeminer.parts.database;

import java.util.List;
import org.codeminer.database.DatabaseException;
import org.codeminer.database.connector.Connector;
import org.codeminer.parts.library.Album;
import org.codeminer.parts.library.Artist;
import org.codeminer.parts.library.Song;

/**
 *
 * @author Daniel Wasilew <daniel.wasilew@codeminer.org>
 */
public interface ArtistConnector extends Connector {

    Artist storeArtist(Artist artist) throws DatabaseException;

    boolean updateArtist(Artist artist) throws DatabaseException;

    boolean deleteArtist(Artist artist) throws DatabaseException;

    void addAlbumToArtist(Album album, Artist artist) throws DatabaseException;

    void addSongToArtist(Song song, Artist artist) throws DatabaseException;

    Artist getArtist(Artist searchCriteria) throws DatabaseException;

    List<Artist> getArtists(Album album) throws DatabaseException;

    List<Artist> getArtists(Song song) throws DatabaseException;
}
